package com.itheima.String;

import java.util.Scanner;

public class Demo1Scanner {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入字符串:");
        String num = sc.nextLine();
        System.out.println("接收到的字符串为" + num);
        System.out.println("请输入字符串");
        String s = sc.nextLine();
        System.out.println("接收到的字符串为" + s);
    }
}
